package cz.najman.emdroid.mappings;

import android.net.Uri;
import android.provider.BaseColumns;
import cz.najman.emdroid.provider.EMDroidDataProvider;
import cz.najman.emdroid.provider.Flags;

public class Institution implements BaseColumns, Flags{

	public static final String URI_STRING_INSTITUTIONS = "content://" + EMDroidDataProvider.AUTHORITY + "/institutions";	
	public static final String URI_STRING_INSTITUTIONS_FOR_EVENT = "content://" + EMDroidDataProvider.AUTHORITY + "/institutions/forEvent";
	public static final String URI_STRING_INSTITUTIONS_MANAGEABLE = "content://" + EMDroidDataProvider.AUTHORITY + "/institutions/manageable";

	public static final Uri CONTENT_URI_INSTITUTIONS = Uri.parse(URI_STRING_INSTITUTIONS);	
	public static final Uri CONTENT_URI_INSTITUTIONS_FOR_EVENT = Uri.parse(URI_STRING_INSTITUTIONS_FOR_EVENT);
	public static final Uri CONTENT_URI_INSTITUTIONS_MANAGEABLE = Uri.parse(URI_STRING_INSTITUTIONS_MANAGEABLE);
	
	/**
	 * Content type dir
	 */
	public static final String CONTENT_TYPE_DIR = "vnd.android.cursor.dir/vnd.mitch.institution";
	/**
	 * Content type item
	 */
	public static final String CONTENT_TYPE_ITEM = "vnd.android.cursor.item/vnd.mitch.institution";
	
	/**
	 * Unique id for the Institution
	 */
	//public static final String _ID = "institution_id";
	
	public static final String TABLE_NAME = "institutions";
	
	public static final String INSTITUTION_NAME = "institution_name";
	
	public static final int INDEX_ID = 0;
	
	public static final int INDEX_INSTITUTION_NAME = 1;
	
	public static final String URI_TEMPLATE_STRING = "{institution_id}";
		
}
